package com.hog.web.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * Demo 控制层
 *
 * @author 糖先森
 * @date 2018年03月21日
 * @since JDK 1.8
 */
@Controller
@RequestMapping("/")
public class DemoController {
    @RequestMapping(value = "", method = RequestMethod.GET)
    public String hello(Model model) {
        model.addAttribute("title", "Hog - 为采集而生");
        return "index";
    }
}